package com.wangtianxiang.rabbitmq.config;

import java.time.Duration;

/**
 * 可以动态更新的rabbit属性 根据实际需求自己拓展
 */
public class FlushRabbitProperties {

    private Boolean publisherConfirms;

    /**
     * Whether to enable publisher returns.
     */
    private Boolean publisherReturns;

    /**
     * Connection timeout. Set it to zero to wait forever.
     */
    private Duration connectionTimeout;

    public boolean getPublisherConfirms() {
        return publisherConfirms;
    }

    public void setPublisherConfirms(boolean publisherConfirms) {
        this.publisherConfirms = publisherConfirms;
    }

    public boolean getPublisherReturns() {
        return publisherReturns;
    }

    public void setPublisherReturns(boolean publisherReturns) {
        this.publisherReturns = publisherReturns;
    }

    public Duration getConnectionTimeout() {
        return connectionTimeout;
    }

    public void setConnectionTimeout(Duration connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }
}
